package com.mayuanfei.service.impl;

import com.aizuda.snailjob.client.core.strategy.ExecutorMethod;
import com.mayuanfei.common.exception.BizException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * TODO 类描述
 *
 * @author 老马
 * @date 2025-04-16 15:56
 */
@Slf4j
@Component
public class MyRetryMethod implements ExecutorMethod {
    @Override
    public Object doExecute(Object params) {
        log.info("执行自定义方法。参数值：{}", params);
        throw new BizException("10002", "测试自定义方法执行异常");
    }
}